package cn._2dland.util;

/**
 * 签名算法工厂
 * 
 * @author deadblue
 */
public final class SignatureAlgorithmFactory {
	/** 算法名：HMAC-SHA1*/
	public static final String ALGORITHM_HMAC_SHA1 = "HMAC-SHA1";

	/**
	 * 获取签名算法
	 * 
	 * @param name 算法名
	 * @return
	 */
	public static SignatureAlgorithm getAlgorithm(String name) {
		SignatureAlgorithm sa = null;
		if(ALGORITHM_HMAC_SHA1.equals(name)) {
			sa = new HMAC_SHA1();
		}

		return sa;
	}
}
